module fiare.game;

import derelict.sdl.sdl;
import fiare.video.screen;
import std.stdio;

struct Configuration {
	int w;
	int h;
	int bpp;
	bool fullscreen;
}

class Game {
	private Screen _screen;

	this(Configuration config) {
		DerelictSDL.load();
	
		SDL_Init(SDL_INIT_VIDEO);

		_screen = new Screen(config.w, config.h, config.bpp, config.fullscreen);
	}
	
	~this() {
		SDL_Quit();
	}
	
	abstract public void run();

}
